/*
 * newfile.h
 *
 *  Created on: 13.02.2009
 *      Author: george
 */

#ifndef NEWFILE_H_
#define NEWFILE_H_
#include <QWidget>
#include <QFile>
#include <QTextStream>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>

class Newfile : public QWidget
{
	Q_OBJECT
public:
    Newfile(QWidget *parent = 0, const QString & f = NULL, const int h = 320, const int w = 240);
public slots:    
void saveAndClose();
void reset();
void fromFile(const QString & f);
void deleteEntry(const QString & f);
signals:
void savedSth();
//protected:
//    void showEvent(QShowEvent *event);
//    void hideEvent(QHideEvent *event);
private:
	QTextEdit * text;
	QLineEdit * title;
	QPushButton * save, * cancel;
};

#endif /* NEWFILE_H_ */
